package com.aacar.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.aacar.dao.DictionaryDao;
import com.aacar.dao.base.CommonBaseDao;
import com.aacar.entity.Dictionary;
import com.aacar.vo.DictionaryVo;

@Repository("dictionaryDao")
public class DictionaryDaoImpl extends CommonBaseDao implements DictionaryDao{
	
	private static final String nameSpace = "com.aacar.dao.DictionaryDao.";

	@Override
	public List<DictionaryVo> getKeyAndValueByType(String preType) {
		return super.getSqlSession().selectList(nameSpace.concat("getKeyAndValueByType"), preType);
	}

	@Override
	public String getValueByPreAndKey(Dictionary dic) {
		return super.getSqlSession().selectOne(nameSpace.concat("getValueByPreAndKey"), dic);
	}

}
